package com.feige.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author feige<br />
 * @ClassName: ForgetPwd <br/>
 * @Description: <br/>
 * @date: 2021/4/22 16:32<br/>
 */
@Data
public class ForgetPwd {

    @Size(min = 6,max = 16,message = "密码长度必须为6~16位！")
    private String newPwd;

    @NotBlank(message = "用户名不能为空！")
    private String email;

    @NotBlank(message = "验证码不能为空！")
    private String code;
}
